<%@ page import="com.solution.constant.LoginConstants" %>
<%
session.removeAttribute(LoginConstants.SESSION_USERNAME);
session.removeAttribute(LoginConstants.EXAMINEE_QUESTION_INDEX);
session.removeAttribute(LoginConstants.EXAMINEE_QUESTION_ANSWER);
session.removeAttribute(LoginConstants.EXAMINEE_QUESTION_ANSWER);
session.invalidate();
response.setHeader("Cache-Control","no-cache"); //Forces caches to obtain a new copy of the page from the origin server
response.setHeader("Cache-Control","no-store"); //Directs caches not to store the page under any circumstance
response.setDateHeader("Expires", 0); //Causes the proxy cache to see the page as "stale"
response.setHeader("Pragma","no-cache"); //HTTP 1.0 backward compatibility
response.sendRedirect(request.getContextPath());
%>

 